/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gisgraph.components;

import java.util.Random;
import org.apache.commons.collections15.Factory;

/**
 *
 * @author Slawek
 */
public class GISEdgeFactory implements Factory<GISEdge> {

    Random rand;
    
    public GISEdgeFactory() {
        rand = new Random();
    }    
    
    public GISEdge create() {
        
        int weight = rand.nextInt(10) + 1;

        return new GISEdge(false, weight);
    }
    
}
